Skip to main content

Create Broker Sub-Account

Type: POST

Description: /v4/user/account/broker-sub

Creates a sub-account under the broker master account. The request must be signed with the broker master account's API Key. The sub-account shares the master's userId and has its own accountId.

Parameters

NameTypeMandatoryDefaultDescriptionRanges
accountNamestringtrue-Sub-account display name, letters and digits only6-16

Response Parameters

NameTypeDescription
subAccountIdlongThe newly created sub-account id

Response Example

Response
{
"rc": 0,
"mc": "SUCCESS",
"ma": [],
"result": {
"subAccountId": 10049631158745
},
"success": true
}

Error Codes

CodeDescription
USER_SUB_ACCOUNT_ILLEGALaccountName fails the rule (letters/digits, 6-16)
SUB_ACCOUNT_LIMITSub-account quota reached for this master account